package cn.com.lms.business.cc.persistence.entity;

import com.bnzj.core.persistence.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@Entity
@Table(name = "bnz_exam_question_category")
public class ExamQuestionCategory extends BaseEntity {

    //上级分类
    @Column(name = "parent_id")
    private Long parentId;

    //分类名称
    @Column(name = "category_name")
    private String categoryName;

    //是否删除  0-未删除 1-已删除
    @Column(name = "is_delete")
    private Boolean isDelete;

    @Transient
    private List<ExamQuestionCategory> children = new ArrayList<>();

}
